﻿using System;

namespace LiJ.Common.Extention.DTO
{
    /// <summary>
    /// 列属性封装基类
    /// </summary>
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = true)]
    public class BaseColumnAttribute : Attribute
    {
        /// <summary>
        /// 
        /// </summary>
        protected string _alias;

        /// <summary>
        /// 
        /// </summary>
        protected bool _IsAuto;

        /// <summary>
        /// 
        /// </summary>
        protected bool _IsIgnore;

        /// <summary>
        /// 列简称
        /// </summary>
        public string alias
        {
            get { return this._alias; }
        }

        /// <summary>
        /// 是否自增长列
        /// </summary>
        public bool is_auto
        {
            get { return this._IsAuto; }
        }

        /// <summary>
        /// 是否忽略当前列
        /// </summary>
        public bool is_ignore
        {
            get { return this._IsIgnore; }
        }
    }
}